/*
 * @Author: your name
 * @Date: 2022-02-24 08:46:40
 * @LastEditTime: 2022-02-24 08:50:49
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \app\src\router\index.js
 */
import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [

  {
    path: '/',
    name: 'Layout',

    component: () => import(/* webpackChunkName: "Layout" */ '../views/Layout/index.vue'),
    children:[
      {
        path: '/',
        name: 'Home',
    
        component: () => import(/* webpackChunkName: "Home" */ '../views/Layout/Home/index.vue')
      },
      {
        path: '/list',
        name: 'List',
    
        component: () => import(/* webpackChunkName: "List" */ '../views/Layout/List/index.vue')
      },  {
        path: '/class',
        name: 'Class',
    
        component: () => import(/* webpackChunkName: "Class" */ '../views/Layout/Class/index.vue')
      }
    ]
  },
  {
    path: '/detail',
    name: 'Detail',

    component: () => import(/* webpackChunkName: "Detail" */ '../views/Detail/index.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
